/**
 * 
 */
package ru.msu.cmc.sp.oberon2.exceptions;

import ru.msu.cmc.sp.oberon2.InterAST;

/**
 * @author pau
 *
 */
public class RecognitionError extends BaseException {
	private static final long serialVersionUID = 1L;

	public enum RecognitionErrorType
	{
		INPUT_FORMAT_ERROR,
		DIVISION_BY_ZERO,
		INTEGER_OVERFLOW,
		DOMAIN_ERROR,
		OUT_BOUNDS_ERROR,
		HALT,
		INTERNAL_ERROR_EXECUTE_EXCEPION,
		INTERNAL_ERROR_STRUCTURE_ERROR
	}
	
	public RecognitionErrorType e;
	
	public RecognitionError(InterAST c, String str)
	{
		super(c.getLine(),c.getCharPositionInLine(), str);
		
	}
	public RecognitionError(int line, int pos, String str)
	{
		super(line,pos, str);	
	}
}
